<?php

namespace app\api\controller\v1;

use app\api\service\Order;
use app\api\service\Token;
use app\lib\Validate\PayValidate;

class OrderController extends BaseController
{
    public function placeOrder()
    {
        (new PayValidate())->goCheck();
        $products = input('post.products/a');
        // $uid = Token::getUid();
        $uid = 7758258;
        $statuc = new Order($uid,$products);
        $result = $statuc->place();
        return json($result);
    }
}
